package com.st.lotte.model;

public class Calcurator {
	// 각 개별건수별 퍼센트 구하기
	private int complete;
	private int nonComplete;
	private int invalidate;
	private int oneTwo ;
	private int twoThree ;
	private int threeOver;
	
	public int getComplete() {
		return complete;
	}
	public void setComplete(int complete) {
		this.complete = complete;
	}
	public int getNonComplete() {
		return nonComplete;
	}
	public void setNonComplete(int nonComplete) {
		this.nonComplete = nonComplete;
	}
	public int getInvalidate() {
		return invalidate;
	}
	public void setInvalidate(int invalidate) {
		this.invalidate = invalidate;
	}
	public int getOneTwo() {
		return oneTwo;
	}
	public void setOneTwo(int oneTwo) {
		this.oneTwo = oneTwo;
	}
	public int getTwoThree() {
		return twoThree;
	}
	public void setTwoThree(int twoThree) {
		this.twoThree = twoThree;
	}
	public int getThreeOver() {
		return threeOver;
	}
	public void setThreeOver(int threeOver) {
		this.threeOver = threeOver;
	}
	
	public void makeCalc(int total){
		complete = complete/total * 100;
		nonComplete = nonComplete/total * 100;
		invalidate = invalidate/total * 100;
		oneTwo = oneTwo/total * 100;
	    twoThree = twoThree/total * 100;
		threeOver = threeOver/total * 100; 
		System.out.println(complete+"//"+nonComplete+"//"+invalidate+"//"+oneTwo+"//"+twoThree+"//"+threeOver);
	}
	@Override
	public String toString() {
		return "Calcurator [complete=" + complete + ", nonComplete="
				+ nonComplete + ", invalidate=" + invalidate + ", oneTwo="
				+ oneTwo + ", twoThree=" + twoThree + ", threeOver="
				+ threeOver + ", getComplete()=" + getComplete()
				+ ", getNonComplete()=" + getNonComplete()
				+ ", getInvalidate()=" + getInvalidate() + ", getOneTwo()="
				+ getOneTwo() + ", getTwoThree()=" + getTwoThree()
				+ ", getThreeOver()=" + getThreeOver() + ", getClass()="
				+ getClass() + ", hashCode()=" + hashCode() + ", toString()="
				+ super.toString() + "]";
	}
	
	
}
